using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using RealState.BusinessObjects;
using RealState.DAL;

namespace RealState.BLL
{
	public class SupportsBLL
	{
		private SupportsDAO _SupportsDAO;

		public SupportsDAO SupportsDAO
		{
			get { return _SupportsDAO; }
			set { _SupportsDAO = value; }
		}

		public SupportsBLL()
		{
			SupportsDAO = new SupportsDAO();
		}
		public List<Supports> GetSupportss()
		{
			try
			{
				return SupportsDAO.GetSupportss();
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public Supports GetSupports(int ID)
		{
			try
			{
				return SupportsDAO.GetSupports(ID);
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public int AddSupports(Supports oSupports)
		{
			try
			{
				return SupportsDAO.AddSupports(oSupports);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int UpdateSupports(Supports oSupports)
		{
			try
			{
				return SupportsDAO.UpdateSupports(oSupports);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int RemoveSupports(Supports oSupports)
		{
			try
			{
				return SupportsDAO.RemoveSupports(oSupports);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int RemoveSupports(int ID)
		{
			try
			{
				return SupportsDAO.RemoveSupports(ID);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public List<Supports> DeserializeSupportss(string Path)
		{
			try
			{
				return GenericXmlSerializer<List<Supports>>.Deserialize(Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public void SerializeSupportss(string Path, List<Supports> Supportss)
		{
			try
			{
				GenericXmlSerializer<List<Supports>>.Serialize(Supportss, Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
	}
}
